package cn.tedu.exercise;

import java.util.Scanner;

public class FishAndNet {
    public static void main(String[] args) {
        System.out.println("请输入一个2000年的日期");
        System.out.println("月份");
        int month=new Scanner(System.in).nextInt();
        System.out.println("几号");
        int day=new Scanner(System.in).nextInt();
        System.out.println("你输入的是"+month+"月"+day+"号");
        method(month,day);
        System.out.println("nihk");
    }

    private static void method(int month, int day) {
        int sum=0;
        switch(month){
            case 1: sum=day;break;
            case 2: sum=day+31;break;
            case 3: sum=day+31+29;break;
            case 4: sum=day+31+29+31;break;
            case 5: sum=day+31+29+31+30;break;
            case 6: sum=day+31+29+31+30+31;break;
            case 7: sum=day+31+29+31+30+31+30;break;
            case 8: sum=day+31+29+31+30+31+30+31;break;
            case 9: sum=day+31+29+31+30+31+30+31+31;break;
            case 10: sum=day+31+29+31+30+31+30+31+31+30;break;
            case 11: sum=day+31+29+31+30+31+30+31+31+30+31;break;
            case 12: sum=day+31+29+31+30+31+30+31+31+30+31+30;break;
        }
        if (sum %5==4||sum%5==0){
//            System.out.println("你在晒网");
            return;//if后面的语句有不在执行，而是返回到main方法，执行后面的语句
        }else{
            System.out.println("你在打鱼");
        }
        System.out.println("88");
    }
}